# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
# Contributor: Michal Krenek (Mikos) <m.krenek@gmail.com>

_pkgname=simplesoapy
pkgname=python-$_pkgname
pkgver=1.5.1
pkgrel=10
pkgdesc='Simple pythonic wrapper for SoapySDR library'
arch=('any')
url='https://github.com/xmikos/simplesoapy'
license=('MIT')
depends=('python' 'python-numpy' 'soapysdr')
makedepends=('python-setuptools')
replaces=('simplesoapy')
source=("$pkgname-$pkgver.tar.gz::https://github.com/xmikos/simplesoapy/archive/v$pkgver.tar.gz")
sha256sums=('4006fb23997693266fbeee0b92d7461c3801c677a6dd2931a9539f34f37aa5b2')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir"

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
